package org.aplikator.client.shared.descriptor;

import org.jboss.errai.common.client.api.annotations.Portable;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@SuppressWarnings("serial")
@Portable
public final class ApplicationDTO implements Serializable {

    private List<MenuDTO> menus = new ArrayList<MenuDTO>();

    private String brand;

    private boolean showNavigation;

    private String defaultActionToken;
    
    private HashMap<String,String> config = new HashMap<String, String>();
    
	public String getConfigString(String key) {
		return config.get(key);
	}

	public void setConfigString(String key, String value) {
		this.config.put(key, value);
	}
	
	public HashMap<String, String> getConfig() {
		return config;
	}
	
	public  ApplicationDTO() {
    }

    public ApplicationDTO addMenu(MenuDTO service) {
        menus.add(service);
        return this;
    }

    public List<MenuDTO> getMenus() {
        return menus;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public boolean isShowNavigation() {
        return showNavigation;
    }

    public void setShowNavigation(boolean showNavigation) {
        this.showNavigation = showNavigation;
    }

    public String getDefaultActionToken() {
        return defaultActionToken;
    }

    public void setDefaultAction(String defaultAction) {
        this.defaultActionToken = defaultAction;
    }
}
